package io.finer.erp.jeecg.bas.service;

import io.finer.erp.jeecg.bas.dto.BasCustomerAddressDTO;
import io.finer.erp.jeecg.bas.dto.BasCustomerDTO;
import io.finer.erp.jeecg.bas.entity.BasCustomer;

import org.apache.ibatis.annotations.Param;
import org.jeecg.common.api.vo.Result;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 客户
 * @Author: jeecg-boot
 * @Date:   2020-04-01
 * @Version: V1.0
 */
public interface IBasCustomerService extends IService<BasCustomer> {

	/**
	 * @Description 获取所有客户
	 * @return
	 * Create at: 2020-12-15 16:45:30
	 * @author: duany
	 * Revision:
	 *    2020-12-15 16:45:30 - first revision by duany
	 *        
	 */
	Result<?> getCustomers();
	
	/**
	 * 根据地域Id查询客户信息
	 * @param page
	 * @param
	 * @return
	 */
	IPage<BasCustomerDTO> getCustomerByRegionId(Page<BasCustomerDTO> page, @Param("regionId") String regionId, @Param("name") String name);

}
